﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="allprofiles.aspx.vb" Inherits="island.allprofiles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:ListView ID="ListView1" runat="server" DataKeyNames="VisitorId" 
            DataSourceID="SqlDataSource1" GroupItemCount="3">
            <AlternatingItemTemplate>
               <td id="Td1" runat="server" style="background-color:Blue ">
                    VisitorId:
                    <asp:Label ID="VisitorIdLabel" runat="server" Text='<%# Eval("VisitorId") %>' />
                    <br />
                    FirstName:
                    <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' />
                    <br />
                    LastName:
                    <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
                    <br />
                    Portrait:
                    <img src='<%# Eval("Portrait") %>'style="width:100px;height:100px" />
                    <br />
                    DateofBirth:
                    <asp:Label ID="DateofBirthLabel" runat="server" 
                        Text='<%# Eval("DateofBirth") %>' />
                    <br />
                    RegistrationDate:
                    <asp:Label ID="RegistrationDateLabel" runat="server" 
                        Text='<%# Eval("RegistrationDate") %>' />
                    <br />
                    Sex:
                    <asp:Label ID="SexLabel" runat="server" Text='<%# Eval("Sex") %>' />
                    <br />
                </td>
            </AlternatingItemTemplate>
            <EditItemTemplate>
                <td runat="server" style="">
                    VisitorId:
                    <asp:Label ID="VisitorIdLabel1" runat="server" 
                        Text='<%# Eval("VisitorId") %>' />
                    <br />
                    FirstName:
                    <asp:TextBox ID="FirstNameTextBox" runat="server" 
                        Text='<%# Bind("FirstName") %>' />
                    <br />
                    LastName:
                    <asp:TextBox ID="LastNameTextBox" runat="server" 
                        Text='<%# Bind("LastName") %>' />
                    <br />
                    Portrait:
                    <asp:TextBox ID="PortraitTextBox" runat="server" 
                        Text='<%# Bind("Portrait") %>' />
                    <br />
                    DateofBirth:
                    <asp:TextBox ID="DateofBirthTextBox" runat="server" 
                        Text='<%# Bind("DateofBirth") %>' />
                    <br />
                    RegistrationDate:
                    <asp:TextBox ID="RegistrationDateTextBox" runat="server" 
                        Text='<%# Bind("RegistrationDate") %>' />
                    <br />
                    Sex:
                    <asp:TextBox ID="SexTextBox" runat="server" Text='<%# Bind("Sex") %>' />
                    <br />
                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                        Text="Update" />
                    <br />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                        Text="Cancel" />
                    <br />
                </td>
            </EditItemTemplate>
            <EmptyDataTemplate>
                <table runat="server" style="">
                    <tr>
                        <td>
                            No data was returned.</td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <EmptyItemTemplate>
                <td runat="server" />
            </EmptyItemTemplate>
            <GroupTemplate>
                <tr ID="itemPlaceholderContainer" runat="server">
                    <td ID="itemPlaceholder" runat="server">
                    </td>
                </tr>
            </GroupTemplate>
            <InsertItemTemplate>
                <td runat="server" style="">
                    VisitorId:
                    <asp:TextBox ID="VisitorIdTextBox" runat="server" 
                        Text='<%# Bind("VisitorId") %>' />
                    <br />
                    FirstName:
                    <asp:TextBox ID="FirstNameTextBox" runat="server" 
                        Text='<%# Bind("FirstName") %>' />
                    <br />
                    LastName:
                    <asp:TextBox ID="LastNameTextBox" runat="server" 
                        Text='<%# Bind("LastName") %>' />
                    <br />
                    Portrait:
                    <asp:TextBox ID="PortraitTextBox" runat="server" 
                        Text='<%# Bind("Portrait") %>' />
                    <br />
                    DateofBirth:
                    <asp:TextBox ID="DateofBirthTextBox" runat="server" 
                        Text='<%# Bind("DateofBirth") %>' />
                    <br />
                    RegistrationDate:
                    <asp:TextBox ID="RegistrationDateTextBox" runat="server" 
                        Text='<%# Bind("RegistrationDate") %>' />
                    <br />
                    Sex:
                    <asp:TextBox ID="SexTextBox" runat="server" Text='<%# Bind("Sex") %>' />
                    <br />
                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                        Text="Insert" />
                    <br />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                        Text="Clear" />
                    <br />
                </td>
            </InsertItemTemplate>
            <ItemTemplate>
                <td runat="server" style="">
                    VisitorId:
                    <asp:Label ID="VisitorIdLabel" runat="server" Text='<%# Eval("VisitorId") %>' />
                    <br />
                    FirstName:
                    <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' />
                    <br />
                    LastName:
                    <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
                    <br />
                    Portrait:
                    <img src='<%# Eval("Portrait") %>'style="width:100px;height:100px" />
                    <br />
                    DateofBirth:
                    <asp:Label ID="DateofBirthLabel" runat="server" 
                        Text='<%# Eval("DateofBirth") %>' />
                    <br />
                    RegistrationDate:
                    <asp:Label ID="RegistrationDateLabel" runat="server" 
                        Text='<%# Eval("RegistrationDate") %>' />
                    <br />
                    Sex:
                    <asp:Label ID="SexLabel" runat="server" Text='<%# Eval("Sex") %>' />
                    <br />
                </td>
            </ItemTemplate>
            <LayoutTemplate>
                <table runat="server">
                    <tr runat="server">
                        <td runat="server">
                            <table ID="groupPlaceholderContainer" runat="server" border="0" style="">
                                <tr ID="groupPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr runat="server">
                        <td runat="server" style="">
                            <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                <Fields>
                                    <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                        ShowLastPageButton="True" />
                                </Fields>
                            </asp:DataPager>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <td runat="server" style="">
                    VisitorId:
                    <asp:Label ID="VisitorIdLabel" runat="server" Text='<%# Eval("VisitorId") %>' />
                    <br />
                    FirstName:
                    <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' />
                    <br />
                    LastName:
                    <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
                    <br />
                    Portrait:
                    <img src='<%# Eval("Portrait") %>' style="width:100px;height:100px" />
                    <br />
                    DateofBirth:
                    <asp:Label ID="DateofBirthLabel" runat="server" 
                        Text='<%# Eval("DateofBirth") %>' />
                    <br />
                    RegistrationDate:
                    <asp:Label ID="RegistrationDateLabel" runat="server" 
                        Text='<%# Eval("RegistrationDate") %>' />
                    <br />
                    Sex:
                    <asp:Label ID="SexLabel" runat="server" Text='<%# Eval("Sex") %>' />
                    <br />
                </td>
            </ItemTemplate>
        </asp:ListView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:IslandConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:IslandConnectionString.ProviderName %>" 
            SelectCommand="SELECT [VisitorId], [FirstName], [LastName], [Portrait], [DateofBirth], [RegistrationDate], [Sex] FROM [UserProfile]">
        </asp:SqlDataSource>
        <br />
    </p>
</asp:Content>
